#ifndef _TANDEMTIMER_
#define	_TANDEMTIMER_

#include "Types.hpp"

/** 
* Tandem timer is a one-two timer that keeps track of two sequential time
* periods. Especially useful for input timing on hold.
*/
class TandemTimer{
private:
    unsigned int startTime;
    unsigned int periodOne;
    unsigned int periodTwo;
    
    unsigned int currentPeriod;
    
    byte switchCount;
    byte switchCounter;
    
public:
    
    TandemTimer();
    
    void setPeriods(byte s, unsigned int one, unsigned int two);
    void restart();
    bool passed(unsigned int time);
    
};

#endif

